﻿using RBAC.Domain.Service.Interfae;
using RBAC.Repository.Impl;
using RBAC.Repository.Interfae;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Domain.Service.Impl
{
    public class CityService:ICityService
    {
        protected readonly ICityRepository _cityRepository;
        public CityService(ICityRepository cityRepository)
        {
            _cityRepository = cityRepository;
        }
        /// <summary>
        /// 显示所在市
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task<List<City>> GetCities(int id)
        {
            return await _cityRepository.GetAsync(d => d.provinceId == id);
        }
    }
}
